package me.goldze.mvvmhabit.http;

public class BaseResponse<T> {
    private int code;
    private String message;
    private T result;

    public int getCode() {
        return this.code;
    }

    public void setCode(int code2) {
        this.code = code2;
    }

    public T getResult() {
        return this.result;
    }

    public void setResult(T result2) {
        this.result = result2;
    }

    public boolean isOk() {
        return this.code == 0;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message2) {
        this.message = message2;
    }
}
